package main

import (
	"speakly-server-go/controller"

	"github.com/gin-gonic/gin"
)

func main() {
	// 初始化gin引擎
	r := gin.Default()
	r.GET("/", func(c *gin.Context) {
		c.String(200, "Hello, Speakly.")
	})
	// 创建聊天路由组
	chat := r.Group("/chat")
	{
		chat.POST("/startup", controller.Startup)
		// chat.POST("/chatting")
	}
	r.Run(":8080")
}
